<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Category Administrator Control Panel</title>
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
</head>
<body>
<jsp:include page="common/header.jsp"/>
<%@page language="java" import = "OnlineExam.*, registration.*, java.util.*"%>

<% 
	User user = (User) session.getAttribute ("USER");
	List<Category> list = user.retrieveAdminCategories();
%>
<b><center>Category Admin : <%= user.getEmailId() %></center></b> 
<br /><b><center>Choose the Category</b></center>
<br>

<center>
<form action="CategoryControlPanel.jsp">
<select name="Category">

<option name="Choose" value="Category">Choose
<% 
	for (ListIterator iter = list.listIterator(); iter.hasNext();)
	{
		Category category = (Category) iter.next();

%>
		<option name="<%=category.getCategoryId()%>"><%=category.getCategoryId()%>

<%  
	} 
%>
</select> <br /><br />
<input type="Submit" value="Submit"><br /><br />
</form>
<form action="User.jsp" method="get">
<input type="Submit" value="Take a Test"> <br /><br />
</form>	
</center>
<jsp:include page="common/footer.jsp"/>
</body>
<hr /><br />
</html>
